var t = getApp();

Component({
    data: {
        selected: 0,
        color: "#8f6927",
        selectedColor: "#8f6927",
        isShow: !1,
        list: [ {
            id: 0,
            text: "推荐",
            iconPath: "/static/tabBar/icon_home_normal.png",
            selectedIconPath: "/static/tabBar/icon_home_focus.png",
            pagePath: "/pages/index/index"
        }, {
            id: 1,
            text: "游故宫",
            iconPath: "/static/tabBar/icon_tour_normal.png",
            selectedIconPath: "/static/tabBar/icon_tour_focus.png",
            pagePath: "/pages/tour/index"
        }, {
            id: 2,
            text: "看文物",
            iconPath: "/static/tabBar/icon_shangwu_normal.png",
            selectedIconPath: "/static/tabBar/icon_shangwu_focus.png",
            pagePath: "/pages/shangwu/index"
        }, {
            id: 3,
            text: "我的",
            iconPath: "/static/tabBar/icon_mine_normal.png",
            selectedIconPath: "/static/tabBar/icon_mine_focus.png",
            pagePath: "/pages/mine/index"
        } ]
    },
    methods: {
        switchTab: function(a) {
            var e = a.currentTarget.dataset.item, n = e.pagePath;
            wx.switchTab({
                url: n
            }), t.$vm.beaconTarEvent("switchTab", {
                name: e.text
            }), t.$vm.umaTarEvent("Um_Event_BottomNavigationClick", {
                Um_Key_ButtonName: e.text
            });
        }
    }
});